約 4,536,682 件
https://w.atwiki.jp/shiitakeo/pages/29.html
Xcode4でKinect(OpenNI+NITE+OpenCV2.2) Kinectセンサープログラミングはまとまってるし日本語リファレンスとして超便利で大変ありがたいものなんだけども,初めてだったり,久々にやるとつまずきそうな部分があったのでメモしときます.あとOpenCV2.2とXcode4での設定もメモ. OpenNIv1.0.0.4 + NITEのダウンロード 上の赤四角がOpenNI, 下の青四角がNITEです.NITEのリンクの下にある文章中の緑四角がNITEのライセンスキーです. まずはOpenNIのダウンロード.上のUnstableをクリック. WinやらLinux用が並んでますが,一番下のMac用をダウンロードします. 次はNITE.こちらもUnstableを. これもいろいろありますが,Mac用をダウンロード. その後の解凍やインストールは本のとおりで大丈夫だと思います.libfreenectとSensorKinectも忘れずに. libfreenectは前にMacports使っていれていたんだけども,本のとおりにhomebrew使ったほうが楽かもしれない. OpenCVのインストール OpenCVはめんどくさいのでMacports使いましょう. $sudo port install opencv これでOpenCV2.2がインストールされます. Xcode4の設定 Xcode3と比べていろいろ変わってる上に英語です. ビルドの設定とかは,左側のプロジェクトのファイルが表示されてる部分の青いアイコンをクリックすると表示されるとこでします.(下の画像のようなものが表示されると思います.) ヘッダのパスとか,リンカの設定はそれぞれ,include, linkerで検索しましょう.するとそれぞれ,Header Search Paths, Other Linker Flagsという項目が出てきます.(画像中赤い四角の部分) そこに, //Header Search paths /usr/include/ni/ //OpenNI /opt/local/include //OpenCV //Other Linker Flags /usr/lib/libOpenNI.dylib //OpenNI /opt/local/lib/libopencv_imgproc.2.2.0.dylib //OpenCV /opt/local/lib/libopencv_core.2.2.0.dylib //OpenCV /opt/local/lib/libopencv_highgui.2.2.0.dylib //OpenCV で,ソースの中で, #include opencv2/opencv.hpp としてやればOpenCV2.2とOpenNIがいっしょに使えます. 設定用XMLファイルの置き場所 Xcode3ではプロジェクトディレクトリの直下にBuild系のものがつくられてましたが,Xcode4では, //設定用XMLファイルを置く場所 /Users/[ユーザー名]/Library/Developer/Xcode/DerivedData/[Project名]/Build/Product/ 以下に実行ファイルがつくられるので,ここに置いてやりましょう.なんでこんなとこに…つーか変える方法あると思うのでまた追記します.
https://w.atwiki.jp/annomod/pages/62.html
QuestFinish 6404800 May God bless you for your good deeds. You truly are a good person! My fellow sisters will remember you in their prayers for this. QuestInvite 6404900 My fellow sisters are wondering if you have completed the Quest!? Were my prayers in vain or have you fulfilled the Quest? You must want to discuss the Quest with me. QuestRemind 6405000 You can do anything with God by your side. I just wanted to remind you about my Quest again. QuestFail 6405100 Oh well, the intention was there. You might as well leave it AIStrong 6405200 Trust in God - that s all it is! That just proves how much you can achieve through righteousness and charity. Running this convent is my natural vocation. Trust in God, and you too will achieve success. We could only have come this far with God s blessing. God s help and hard work is the secret to every success! I couldn t have done it without my fellow sisters... AIWeak 6405300 You really have been blessed by God! Never forget your obligations to the poor! The important thing is that you remain true to God and to yourself. You are protected by the hand of God. Clearly your actions are blessed by God... I am content with what God has bestowed on me. You should thank the Lord for your success. MilitaryNegative 6405500 What are all these Weapons for? You have no authority over life and death! God alone can say if all these War machines serve a higher purpose… I am truly afraid for my fellow sisters safety! All these Weapons lie upon my soul like a dark shadow! AIKill 6405600 The Lord giveth... and the Lord taketh away... Don t worry... Death is... the gateway... to paradise... But... who will look after the convent now...? AIComebackAngry 6405700 I cannot simply allow you to ruin my life s work! Heavens above! Someone must put a stop to your shameful deeds! I cannot and shall not allow this deplorable state of affairs to continue! FeedbackSettlementNegative 6406100 I fear sin has wormed its way into your Settlement. I see few signs of modesty in your City… Sodom and Gomorrah were famous Towns too... Living in such affluence - how sinful! The splendour of your City cannot hide the stains on your soul! Your Settlement reminds me of the building of the Tower of Babel! This City is a hotbed of sin! FeedbackSettlementPositive 6406200 Trust in God makes anything possible! Your Settlement is proof! Bravo! Your City is a place of true brotherly love! God has cupped your Town in his protective hands! Your Settlement has been blessed by God! God looks favourably upon your Settlement... Your compassion has allowed this Settlement to grow! God will be pleased with your Settlement! PlayerSettleAIIsland 6406500 Only members of the order may live here. Anyone who is not a member of the Convent should settle somewhere else. AIWantIsland 6406600 I was hoping to build a branch of the convent in this very spot... Is it just an unfortunate coincidence that you are occupying this Island now? I could have done with the Raw materials on this Island for the convent... Dome Built 6406700 You should be canonised for this magnificent house of God! For the love of Saint Barbara! Your Cathedral s Towers extend all the way to Heaven! AIResign 6406800 It doesn t seem to be God s will that I remain in charge of this convent... I shall undertake a pilgrimage to gain a little clarity on my actions... I should go into seclusion to find my way back to the true Faith. SmalltalkCsp 6406900 Could it really be possible that God would send us a message through Marie d Artois? Lots of people believe what she says. Ah, if only the Lord would talk to me too... What do Marie d Artois and I have in common? She too lost her family in a cruel stroke of fate. I suspect you can t experience true Faith until you have endured terrible suffering... Gavin Langton has never contributed to the collection, even though he has enough money to let his entire Population live in the lap of luxury! What a charismatic man Lord Langton is! Only why does he waste his talent rather than using it for good deeds?! I really should take him to task about that... Cardinal Lucius is undoubtedly one of the most important Churchmen of our time! But in the eyes of God he too is a mere sinner… Cardinal Lucius obeys the Commandments when it suits him! That type of moral conduct is inappropriate for a Cardinal! Leif Jorgensen asked me if he could sing in the Monastery Church choir. Fortunately it s a women s choir, so I could turn him down without having to lie... Jorgensen s songs and poetry are dreadful, I know. But through him God is teaching us a lesson in humility and forbearance. I ve known Willem since he was young. He was an extremely charismatic man in those days... He almost caused me to rethink my decision to take the veil... It is truly tragic that Willem has lost his family and I quite understand how that must have shaken his Faith. Still, he shouldn t use that as an excuse to rail at God the way he does. Constanza Zanchi has buried so many husbands already... I m starting to wonder if it really is God s way of testing her Faith... Baronessa Zanchi is guilty of four of the most detestable vices vanity, greed, selfishness and envy! It wouldn t hurt her to go to confession more often... Giovanni di Mercante s hard work as a salesman is honourable. But it displeases God that he is motivated solely by greed! I don t want to imply that Giovanni di Mercante is mean, but it would certainly do him good to donate part of his income to a good cause. Helena Flores is a real angel on earth! I can barely think of anyone who adheres to charitable principles as strictly as she does. Helena always puts her people s interests before her own. She really would be a valuable acquisition for my convent... Forcas reminds me of the parable of the lost sheep. I would love to be the shepherd that brings him back from the abyss and sets him on the path of righteousness… Be careful of Guy Forcas! That man is so full of pain that he would not find it easy to take the hand of God… Ich kenne Richard Northburgh als gütigen und umsichtigen Mann. Wenn man es aber zu weit treibt, wird er nicht zögern, sich entsprechend zur Wehr zu setzen. Richard Northburgh blieb stets resistent gegen Schmeicheleien und ließ sich nicht zu Intrigen hinreißen. Kein Wunder, dass ihm der Kaiser bedingungslos vertraut. Richard Northburgh kam auf Befehl des Kaisers hierher. Seine Reichstreue gepaart mit seine Aufgeschlossenheit gegenüber dem Orient machen ihn zum idealen Diplomaten. Al Zahir erkennt sofort, wenn jemand unaufrichtig zu ihm ist. Dann schlägt die Herzlichkeit des Großwesirs schnell in Ärger um. Dies muss ich Al Zahir hoch anrechnen Er begegnet anderen Religionen mit genauso viel Respekt wie seiner eigenen. Al Zahir mag anfänglich vielleicht verschlossen wirken. Doch wenn Ihr Euch seinen Respekt verdient habt, wird Euch der Großwesir behilflich sein, wo er es vermag. Küstenstädte, ungeschützte Handelsflotten - nichts, was in der Reichweite der Korsaren liegt, ist vor ihren Überfällen sicher! Alle fürchten den Anführer der Korsaren... Aber mich würde auch interessieren, wie Hassan ben Sahid zu so einem Menschen wurde… Welches Schicksal hat ihn zu der Bestie gemacht, die er heute ist? Hassan ben Sahid ist ein gefährlicher Mann. Wenn Euch Euer Leben lieb ist, dann lasst Euch besser nicht mit ihm ein. MenuMemoryAngry 6407100 Do I have to say it again?! I want nothing to do with wicked people like you! You again! Surely there are enough demons in the world already! I know all about you now! So stay away from my convent! MenuMemoryPleased 6407200 You re back! Nice to know you re in the neighbourhood! Lovely to see you again! The world needs worthy people like you! You are back! I must inform my Sisters immediately... MenuNeutral 6407300 My Sisters and I would be delighted to welcome you into our Convent. Running my convent requires all my attention. Tell me the truth are you devout and do you do Christ s bidding? Do you have compassion for the needy? So many are suffering these days... MenuCspKill 6407500 God save me… You destroyed my life s work, and now you re back again! You re back....! Will my fellow sisters and I never find respite from you? MenuPlayerKill 6407600 I have driven the Devil out of you once already! And I won t hesitate to do it again! You again! Does this mean I will have to keep raising my hand to you until Judgement Day? SmalltalkSelf 6408200 There were many reservations about the Convent. I had to fight long and hard, but God finally rewarded my perseverance and I was able to found the Order. My whole family succumbed to a lingering illness. I was so desperate to help them, but all I could do was pray and watch their condition deteriorate day by day. That was when I decided to devote myself to Herbalism. It is outrageous how the representatives of the Church live in gluttony and sin! But instead of taking my warnings seriously, they simply treated me with mockery and suspicion! QuestCorveeStart 6403600 I assume you will be supporting the convent! Regard this as an urgent service for the Order! I want you to promise to fulfil this task! MosqueBuilt 6405800 I m certain the Saracens also believe in a God. Our souls would be lost without God… A House of God without a Bell tower? The world is full of surprises… Affirmation 6408500 God favours the brave! Congratulations! My fellow sisters are utterly spellbound! You have accomplished a work that is truly pleasing to God! It must have been divine inspiration... God guided your hand in this deed. SelectShip NEW 6407700 This Ship was a gift from an anonymous benefactor! God bless them! We have been saving our donations for months to pay for this Ship… Please don t come any nearer; I have a few sick People on board! It is only a modest Ship, but it serves its purpose! I am preparing a shipment of relief supplies as we speak… With the grace of God this Ship shall brave all storms. Text spezial (20 000 GUIDs) 6430000 [THIRDPARTY_SENDER_PLAYER] is very sorry that no Ships can put in at the Harbour in [THIRDPARTY_CITY] to help fight the Plague. [THIRDPARTY_SENDER_PLAYER] is not unduly proud to be stronger than you. [THIRDPARTY_SENDER_PLAYER] congratulates you on your supremacy. Quests (50 000 GUIDs) 6450000 Act of grace Saint Martin s Commandment The ways of the Lord Blind zeal Enlightened A small sin Medicine Cast out Poor souls Desperate measures Mortal sin Shortage of space To new horizons Forgiveness Plans for expansion Native soil The Order s Settlements Stormy arrival A blessing in disguise Books in peril Plague Ship The divine glow I "The Lord is my light", so it is written. But without windows only darkness reigns, even in a place like [QUEST_SENDER] s Monastery. A Glazier should put this right! The divine glow III [QUEST_SENDER] is satisfied; his artist s plans are splendid and light will now shine through in all its glorious colours! However, some rare Building materials and Dye will be required to complete the Cathedral. The divine glow III Plain windows in a House of God under [QUEST_SENDER] s leadership are out of the question. However, it is said that a Monk with a talent for Glass painting lives in your Settlement. The performance I Once a year [QUEST_SENDER] s Orphans put on a play of "The Last Supper" for the People. But we still have no Bread for the key scene. Can you help the little ones? The performance II [QUEST_SENDER] is outraged. Real Wine should be used for the performance, but the children are still rather too young to drink it! Grape juice can be extracted from fresh Grapes. Help them out! Mission I The Brothers of the Order are diligently making copies of the Holy Scripture, but [QUEST_SENDER] s Orphans cannot understand the complex language. A learned Alchemist should pen a version which is suitable for Children. Mission II The Scholar s work is excellent, but he requires a large quantity of Paper. [QUEST_SENDER] s supply is inadequate. She is asking for your help, as she feels the work is vitally important. Mission III It is finished! Now everyone can understand the joyful message. But some Church leaders are dissatisfied with the work and would like to see the version destroyed. [QUEST_SENDER] asks you to protect this precious work as it is being circulated. Winter clothing I Winter is at the door and now, of all times, the Ship with the Winter clothing for the poor Orphans has capsized! [QUEST_SENDER] asks you to salvage everything you can. Winter clothing II Despite your gallant efforts, only a small amount of Winter clothing could be salvaged. The Orphanage now needs to replace what was lost; can you help [QUEST_SENDER] out? Aborted Abduction Missing Childhood dream Gold fever Family members Poor souls Distress call Handelsauftrag NG_Welcome 7025000 When the elements... in their original form... Now I ve gone and lost my train of thought! Now, where did I... Argh! You startled me! As soon the materials are combined, an explosion will... Oh, it s you! Oh! Hello! Yes?? NG_FunctionNotAvailableStreet 7025010 Down the hill... With all those fragile flasks... You ll have to build a road! Do you have any idea how explosive these compounds... Er... Perhaps you could build a road? Just to be on the safe side... NG_FunctionNotAvailableCooldown 7025020 No-no-no... I need to make certain preparations for my experiments, otherwise there could be... a bit of an explosion! Distillation flask, athanor... now, where s that crucible gone? I... er... just need to track down my apparatus... NG_FunctionRefused 7025050 Not now, I m... just in the middle of brewing something...! Ssshhhh! ... This isn t a good time to... interrupt the transmutation... Later! Once the more explosive elements have dispersed... NG_FunctionInvitationAccepted 7025070 These quantities should produce just the right mix... possibly... Is this matter pure? In that case... let s try an experiment. The planetary configuration... Uranus is in the Saturn square... It might just work! Excellent! But if the phlogiston starts oxidising, you d better run for cover... NG_FunctionRunning 7025080 First refine the primary particles... then phosphorus - just one measure... Ah, maybe that s a bit too much... Quicksilver, good... Now for the sulphur... Wherever did I put it...? The experiment is running… It s looking good… no mistakes now… NG_FunctionFinished 7025090 It... actually worked! Sometimes I even surprise myself. That s it! Um... Did anyone happen to make a note of what I did? Has it worked?! I must note this down... NG_FunctionFail 7025100 cough The, ahem... raw material... must have been contaminated... cough Oh... Why didn t the lead react with the salt? Must be the heat... yes, I suppose it wasn t hot enough... Everything s... under control.... Well... at least we re all still alive... aren t we? NG_FunctionRemind 7025110 I am about ready to carry out an experiment. How about you? I have a new theory! We must test it immediately! I just had a flash of inspiration… let s put it into practice… NG_QuestStart 7025120 Could you do that for me? Can t at the moment... important experiments… Couldn t you take that on? ...Got these volatile materials... tricky process… Would you have time to do that? ... just monitoring the transmutation... you ll have to do it! NG_QuestFinish 7025130 What s that? Oh, yes... I remember now! I thought I d... err... Ah yes, thank you. Ah! Fascinating! Just what I need... NG_QuestInvite 7025140 What have you got there? Pause For me...?! What s that glittering? That thing there... Is... is that it!? NG_QuestInviteCancel 7025150 Tsk! Why are you disturbing me...?! Fine... can t at the moment though... Yes, yes... later would work... NG_QuestFail 7025160 Did I... er... I really don t need... oh, just forget it. I... was mistaken. It s been taken care of. Forgot... to tell you... well, it s too late now anyway. NG_SmalltalkSelf 7025170 The Philosopher s Stone... The primary matter... From the earth... The purest materials... extracted and the quintessence... transmuted. Yes, THAT S it... The Emerald Tablet... sulphur and mercury to purify the elements. Separate earth from fire... the rough from the smooth... Or the whole lot goes bang... NB_02 Old Tree 7025400 NG_Welcome 7025400 Did your curiosity bring you here or do you seek advice from the... Witches!? Behold, weird sisters! Someone approaches! Come closer! We have long known what you are seeking! gurgling, knowing chuckle NG_FunctionNotAvailableStreet 7025410 The path down is treacherous... a road, build us a road! These old bones have a heavy load to bear... A road would make it so much easier... NG_FunctionNotAvailableWares 7025430 Our powers are waning... and we have run out of means to revive them. Sisters, do you feel it? Our powers are ebbing! The magic is fading! NG_FunctionNotAvailableShutdown 7025440 We are ready to light the fire under the cauldron again… Should we weave our Magic? All it needs is one word from you… NG_FunctionRefused 7025450 Do we want to, sisters? Maybe! - But can we? Oh no! We cannot weave our Magic without your help… It is up to you to fulfil destiny... NG_FunctionRunning 7025480 Root of hemlock... the ground tooth of a wolf... Sisters, stir with all your might! Foxglove, viper s bugloss... What a fine broth we are concocting for you! Sisters, start the cauldron bubbling! Now we can start weaving magic... Sisters, do we have the henbane? The time is almost upon us... the dreadful brew nears completion! A drop of toad s mucus.... tail of snake... Ah! See how it bubbles and sizzles! NG_QuestStart 7025520 We re just three old herbwomen... Can you help us? Hey! Yes, you! Do the sisters a favour! If you accomplish this deed, you can be sure of an ample reward... NG_QuestFinish 7025530 Ah! Very good! Thank you... Hurry, sisters... It s... here...! Splendid, splendid! It will soon be bubbling in the cauldron... NG_QuestInvite 7025540 Give it to us! Give it to us now! We have waited so long for this... Ours! Not yours! Let us see it! Now! NG_QuestInviteCancel 7025550 Don t worry, sisters... Don t fret, sisters... All in good time. Wait, wait, all we ever do is wait... NG_QuestFail 7025560 The opportunity is wasted! It is a crying shame, sisters... We are just old witches; no encouragement is required! Unhappy is our lot, and bitter… NG_SmalltalkSelf 7025570 We have been here since the beginning of time. Under the roots of the old tree... rests a dark power… We protect it, and it bestows power upon us... We know you! The old tree showed us. Didn t it, sisters? Oh, yes! You are destined for great deeds... Yes, great deeds... NG_Predicition_Plague 7025590 Ah we see pain... they are wasting away There is a wailing on the wind Disease and misery... Beware! The Grim Reaper will appear unto you! The sisters have seen it... circling above your head... Death! NG_Predicition_Alliance 7025600 A banner on the horizon! Soon, two destinies... will be intertwined as a single bond... We saw it in the root drink from the willow tree! A band of protectors will be revealed... A new friendship will develop. The creaking of The old tree has foretold it. NG_Prediction_War 7025610 Dark thoughts... malicious intentions... No! No! Leave our heads! The wind whispers of betrayal... and the rain sings of danger This day will end in misery! The earth tastes of... blood... NG_Prediction_Tornado 7025620 Beware! Disaster descends from the heavens! Up is down and down is up... My, see how it flutters and swirls! The storm is unleashed; it is drifting over land and sea... NG_Prediction_Fire 7025630 Lights flicker on the horizon the heat it s getting worse ahhh... Hear the crackling of the thatch on the rooftops - the fire is lit! Run, run! Ahhh... See how it darts and sizzles... Blackened flesh wherever you turn... NB_03 Assasins Fortress 7025800 NG_Welcome 7025800 Are you alone? Who needs to die? I trust no one followed you? NG_FunctionNotAvailableStreet 7025810 The guardians of the society demand that a road be built. First the road must be paved. NG_FunctionNotAvailableCooldown 7025820 Not until the training is complete. Only the secret society decides when the time is right. NG_FunctionRefused 7025850 Later... perhaps... The time is not yet ripe… There s still time to die... NG_FunctionInvitationAccepted 7025870 Your word is law to these men. These men will follow you to the death. The angels of death are ready. The secret society entrusts these men to you. NG_FunctionAvaivalbe 7025880 Who shall be your angel of death? One word from you and these men are yours.
https://w.atwiki.jp/annomod/pages/71.html
SmalltalkSelf 8400950 As the Sultan, I need to exercise caution and consider carefully whether I can trust someone... Someone like you! I take a special interest in my Empire s progress! Astronomy, medicine, architecture... My wisest scholars tirelessly research all the mysteries our world has to offer. Tell me more about the Occident... And don t leave anything out! It would give me great pleasure to hear what you have to say. QUEST_STARTED 8401800 There s an urgent affair of state that I m prepared to entrust to you... You could take this opportunity to render outstanding services to the Sultanate... I would like you to deal with this essential affair of state personally! I hope you will undertake this service for me and for my Empire! QUEST_REMINDER 8401850 You have my absolute trust in this matter... I know I can rely on you as if you were one of my closest confidants... QUEST_INVITATION_STARTED 8401900 Speak! Did you succeed? Have you come to report on your Quest?! Have you come to give me your report? INVITATION_CANCELLED 8401950 Stick to your guns. I m counting on you! This matter is too important to postpone any longer. QUEST_FINISHED 8402000 You are truly an ally of my Empire... You did not betray my faith in you! I thank Allah for sending you to me... QUEST_FAILED 8402050 Oh well... I ll have to find another solution. Perhaps you will have an opportunity to make up for this fiasco. SelectShip NEW 8407700 Profil Text 8425000 [THIRDPARTY_SENDER_PLAYER] appears impressed by the completion of your Sultan s mosque and is now prepared to receive you at his residence. Quests 8450000 Standardquests Prayer rugs Some important Noblemen from the Occident are paying a visit to [QUEST_SENDER]. Some Trade treaties are to be signed, so can you supply [QUEST_SENDER] with some occidental delicacies? High-profile visit Stones for the Orient Poor Harvest The chronicles Wear and tear Harem residence Defamation of character Red-handed The Gift The floating Prison Excellent opportunity The seraglio The World map Fertile Islands The object lesson Looters The renegade Seven The brother Hit them where it hurts Respect The traitor The jailbreakers Moneybags The Ocean of no return The Corsair ship On the run The irresistible dancers [QUEST_SENDER] would like to hold a riotous Feast lasting several days. However, he wants to offer his guests some special entertainment. Find the Jugglers in your City and bring them to [QUEST_SENDER]. The big Feast I Astounded by the Jugglers, the guests are expecting more exotic surprises. Now [QUEST_SENDER] wants to present delicacies and costumes from the Occident. Deliver him the appropriate Goods. The big Feast III It is a rousing Feast. A group of Jesters are now to appear to provide the guests with further amusement. Do [QUEST_SENDER] a favour and bring the best Jesters in your City to his Feast. The big Feast III The morning after was particularly unpleasant for the Western guests. [QUEST_SENDER] s Doctors have no idea how ease the guests headaches. Seek out your best Alchemists to brew a Potion as a remedy. The big Feast IV Now that all the guests have been treated and restored to good health they can embark on the journey home. [QUEST_SENDER] asks you to accompany the impressed guests safely home. The big Feast V [QUEST_SENDER] is delighted to receive a group of Western Noblemen. They want to write an account of their journey through the Orient. Deliver [QUEST_SENDER] with the finest Goods! The false chroniclers I After having had a good time in [QUEST_SENDER] s City, the Noblemen set off for home. However, their has Ship has somehow been damaged. Help them repair it. The false chroniclers II The chroniclers Ship has now arrived safely back into [QUEST_SENDER] s Harbour. However, [QUEST_SENDER] mistrusts the curiously anxious men, and assigns you to bring him your best Spies. The false chroniclers III [QUEST_SENDER] is enraged. His Spies report that the guests are none other than agents of the Orient s worst enemy. On no account must they leave the area. Intercept them! The false chroniclers IV [QUEST_SENDER] thanks you for your efforts. However, he is uneasy about your People s lack of attention to detail. A few shipwrecked chroniclers are still floating in the Ocean. Bring them to [QUEST_SENDER]! The false chroniclers V At the Emperor s request, [QUEST_SENDER] wants to deliver him the traitors. He s not entirely comfortable with the idea. Escort the vassals safely to the Imperial city. The false chronicler VI [QUEST_SENDER] a problem on his new Island an influenza epidemic. The virus seems to be resistant to traditional oriental Medicine. Deliver useful Herbs and Spices to him. Influenza with consequences I [QUEST_SENDER] s Doctors are making no progress. However, the ruler has heard of some highly skilled witches in your City. Find them and bring them to [QUEST_SENDER]! Influenza with consequences II The flu epidemic is subsiding. [QUEST_SENDER] is amazed at the three witches and watches them go with a heavy heart. He guarantees the witches a safe Escort home. Will you undertake this task? Influenza with consequences III [QUEST_SENDER] is furious to hear about the attacks on the witches. He has heard that the witches are persecuted in the West, while in his realm they are honoured as healers. Sink the witch-hunters! Influenza with consequences IV Influenza with consequences V The planned coup d etat I [QUEST_SENDER] is irate that the Corsairs are constantly attacking his Trading ships en route to the West. He assigns you the task of hunting down the plunderers. One of the Corsairs reveals the background to the raids. A coup d etat is planned. Three of the ringleaders are allegedly in your City. Seek them out and bring them to [QUEST_SENDER]. The planned coup d etat II The three plotters remain silent. A Fleet of Ships belonging to the plotters has also set up a Blockade in front of [QUEST_SENDER] s Island. Break through it! The planned coup d etat II Meanwhile, [QUEST_SENDER] has found out which of his Officers remain loyal and which not. He asks you to send his loyal subordinates Weapons. The planned coup d etat III The dissidents were overpowered by [QUEST_SENDER] s well equipped Units. During interrogation one of the Captains disclosed the location of the chief instigator s hideout. Find the man! The planned coup d etat IV The coup d etat was quashed. [QUEST_SENDER] does not want to execute the rebels, but will instead punish them by making them build a Monument commemorating the foiling of the coup. Deliver the Goods required to do this. The planned coup d etat VI A Captain of one of [QUEST_SENDER] s Trading ships reported some weatherbeaten chests which he was unable to salvage due to heavy seas. The Coats of arms on the Chests resemble those of the Sultan. Salvage them. The false Crest I The Chests look very old. What precious Items do they contain? [QUEST_SENDER] asks you to seek out the Alchemists in your City to ascertain both the age and origin of the Flotsam. The false Crest II The Alchemists require a number of Goods to determine the exact age of the Chests. [QUEST_SENDER] does not have these in stock. Supply him with the Goods so that work can proceed! The false Crest III The Crest is a forgery! Someone is trying to profit from [QUEST_SENDER] s good name, but he has written his address in a hidden place on the Chests. Find the swindler! The false Crest IV Al Hamra I Two of [QUEST_SENDER] s Spies have gone into hiding in your City after completing a Quest. Take care of this matter and bring them to him. This is urgent! Al Hamra II It is now certain according to the Spies, one of the three feared Corsair brothers is suffering from a serious illness and must be returned to his homeland. This is the chance to eliminate Bilal al Hamra. Al Hamra III It was only a matter of time, and now the time has come. Baltasar al Hamra, Bilal s oldest brother, has sailed his Fleet to [QUEST_SENDER] s Harbour to revenge his brother s death. Al Hamra IV The Corsair fleet now lies at the bottom of the Ocean. But the third brother has escaped and is now trying to flee. Sink him and, in so doing, end the Al Hamra reign of terror. For posterity I Inspired by the Emperor s idea of a Chronicle for posterity, [QUEST_SENDER] would also like to leave a permanent legacy a Building. Books should explain which type of Building would provide a fitting Monument. For posterity II For posterity III For posterity IV Reports have shown that none of the local Islands can bear the weight of the Palace. However, a site has been found further South. Deliver the Materials directly to a Transport ship. Harmony I There is a big day ahead; [QUEST_SENDER] s nephew wants to marry Lord Northburgh s sister. Bring the lady from her shopping expedition in your City and to the place of the intended union. Harmony II There are so many arrangements to be made! After all, [QUEST_SENDER] wants the marriage to be a symbol of the joining of the two cultures. Huge quantities of the most exquisite Food and Drink from both Cultures will be required. Harmony III Not everyone is enthusiastic about the historic event. Some Princes consider it sacrilege, and they intend to try to do all they can to prevent it. Stop them! Harmony IV The Sultan is amazed that his nephew has chosen a woman of such independent mind and strong will as a wife. Even her wish to be married by her old and long-lost Confessor cannot be denied! Harmony V [QUEST_SENDER] is delighted with the preparations for the large Feast. Even the bride is finding less and less to nag about. Yet one thing is still missing thousands of lights are to illuminate the ceremony. Harmony VI The crowd cheered, the bride cried; the marriage was a great success. To ensure that it remains that way, [QUEST_SENDER] asks you to accompany them on the first stage of their honeymoon around the world. Days of study were unable to unearth a Building suitable to the Sultan. However, Lord Northburgh offered his architectural expertise and designed a Palace. Collect the Construction plans. [QUEST_SENDER] is astounded by Lord Northburgh s plan. He now wonders where this Building, which is to preserve his memory for all time, should be built. Look for a suitable site! Recovery The Sultan has learned of the mysterious illness which is afflicting the Emperor. He immediately sent his servants out to find the best Alchemists the Orient has to offer. They are now ready to travel to the Imperial residence. Delivery The Emperor has personally taken custody of a saboteur who was caught trying to infiltrate the Imperial residence. As the person behind the saboteur is one of the Sultan s renegade Princes, the Sultan himself wants to pass judgement on him. He therefore asks for the prisoner to be handed over. Confidant Confession War-mongering Princes are currently spreading rumours about the premature collapse of relations between the Sultan and the Emperor. The Sultan would like to write a letter to the Emperor to dissociate himself from this allegation most emphatically. Dress alliance Manhunt For some weeks, Lord Northburgh has been looking for a convicted Knight who escaped from the Debtor s prison. A Captain from Al Zahir s Fleet discovered him on an Island and managed to apprehend him. He is now ready to be collected, but Weapons will be required for protection. The danger is averted, but although the ladies are under the Sultan s protection, they long to return to their cool, green homeland. It is only the knowledge that Lord Northburgh will be looking after them that gives him the heart to let them go. The false Coat of Arms V Demonstrate Honour Duty Qualities of a confidante Comrade at arms Golden attendance Maritime symbol Not many receive the Honour of being granted the [QUEST_SENDER] s trust. Especially Occidentals. And a fair few of the Sultan s Princes find this quite incomprehensible. Gain some Prestige with them. Being the [QUEST_SENDER] s confidante brings not only Privilege but also duties in its wake. The [QUEST_SENDER] is now asking you to offer your services. Crush the Corsairs so that they leave these Waters once and for all. You have recently demonstrated your understanding of Diplomacy and Trade to [QUEST_SENDER]. A confidante of the [QUEST_SENDER] should also exhibit the qualities of a good Governor. Prove yourself. As the [QUEST_SENDER] s confidante, you are now also a subject of the Sultanate and are duty bound to protect and safeguard it. This may sometimes require the use of the Sword. Arm yourself for this eventuality. Gold means very little to the [QUEST_SENDER], but he too cannot deny its usefulness. He therefore demands of all his followers their constant readiness to support the Sultanate. There are still a small minority out there who oppose the growing bonds between the Orient and Occident. As a shining symbol of the new world, the [QUEST_SENDER] wants to use Oriental ships sailing under your Banner to dismantle these old structures . Rather than lock him away in a deep, dark dungeon for the rest of his days, the [QUEST_SENDER] would rather make use of the Artist s talents himself. He is to serve as Court artist in the Imperial capital. Please escort him there yourself to ensure that he does not once again fall into the hands of criminals. Residents Text + Audio 6600000 Gesetzlose 6600000 Feedback 6600000 Audio 6600000 Pleased 6600000 I knew you could do it! Exactly! Yeah! At last! About time too! Angry 6600010 Outrageous! What a shambles! You can t do that! Bandis Invitation 6600020 What s the deal? Are you finally going to let us into your Town?! Can we stay with you now? Or do you want us to keep stirring up trouble!? Either you let us stay here or things ll get very… uncomfortable Bandits invitation Accepted 6600030 You ve made the right decision... Good decision... Bandits Invitation Cancelled 6600040 Pah! You ll soon find out what this means! So you really want to risk it, do you!? Bandits Arrive 6600050 Now you re goin t pay for you re heartless ways! You won t get rid of us so quickly this time, I can tell you! We re staying, like it or not! Bandits Killed 6600060 Argh...! We don t stand a chance against Knights in armour... Damn it... cough I ve bought it... Bandits Win 6600070 triumphant laugh Your Knights have bitten the dust! The riff-raff prevails! Send another hundred Knights if you like; you still won t get rid of us! Bandits Leave 6600080 We ve taught you a right lesson, we ave... gleeful chuckle gleeful chuckle Well then... til next time.... Text 6600100 For a price of [THIRDPARTY_TRIBUTE] Gold coins, [THIRDPARTY_SENDER_PLAYER] and his accomplices are prepared to call off the attack and to live as Beggars in [THIRDPARTY_CITY] from now on. [THIRDPARTY_SENDER_PLAYER] and his accomplices are attacking [THIRDPARTY_CITY]. [THIRDPARTY_SENDER_PLAYER] and his accomplices are withdrawing from [THIRDPARTY_CITY]. [THIRDPARTY_SENDER_PLAYER] asks you for help [CR][THIRDPARTY_QUEST_INFOTEXT] [THIRDPARTY_SENDER_PLAYER] has withdrawn his request for help with "[THIRDPARTY_QUEST_NAME]". [THIRDPARTY_SENDER_PLAYER] は"[THIRDPARTY_QUEST_NAME]"の要求を叶えてくれたのかと尋ねています。 [THIRDPARTY_SENDER_PLAYER] reminds you about the outstanding request for help with "[THIRDPARTY_QUEST_NAME]". [THIRDPARTY_SENDER_PLAYER] is disappointed that you can no longer grant the request for help with "[THIRDPARTY_QUEST_NAME]". The [THIRDPARTY_SENDER_PLAYER] and his cornies have defeated your Troops. You have defeated [THIRDPARTY_SENDER_PLAYER] and his cronies. Bettler 6600200 Feedback 6600200 Audio 6600200 Pleased 6600200 struth! May God bless you! Your heart s in the right place! God bless you! Thank you! You ve got a good heart! Angry 6600210 Nouveau riche rabble! Pah! You can treat us Beggars like this... Yeah, that s right! ...No consideration whatsoever fer the poor! Beggars Invitation 6600220 Pluck up some courage and let us into your Town! Won t you give a couple o miserable souls shelter? We eard of your gen rosity… so we just came here... Don t send us away! We won t cause no trouble! Promise! Please don t send us away again! We ain t got nowhere else to go... Beggars invitation Accepted 6600230 What, we can stay?! That s top, that is! That s a load off my mind, an that s the truth! What, you re openin the City gates for us!? I ll never forget you...! Beggars Invitation Cancelled 6600240 As if our lot wasn t hard enough already... So, this is your idea of charity... Quest Started 6600250 Couldn t you do somethin for us Beggars, too? It s just a wee favour... Well, erm... We ve got a bit of a problem... could do with yer help... You re the one to ask... for help and that... ...So the others said, anyhow... You going to help us then? There s something in it for you too... Beggars honour - goes without saying... Quest Reminder 6600260 So what s going on with this favour? Suppose you ve forgotten you said you d help us, eh? Quest Invitation Started 6600270 Is that right!? You haven t forgotten about our request?! What s this I hear?! You re looking into the matter for us? Quest Invitation Cancelled 6600280 No problem! ...I m used to waiting... Wouldn t be the first time someone s forgotten about me... Quest Finished 6600290 I can hardly believe it...! happy chuckle You ve done a smashing job there! That s great! Nobody s ever helped me before when I wanted something... Quest Failed 6600300 Knew nothing would come of it... sigh Would have been a miracle... Resident Talk Angry 6600310 Even the thugs in the dungeons have it better than us! I d rather sack out with the canal rats an bluebottles than in your Hospice! It s worse for us in the Hospice than it is on the Streets! I d make myself scarce if I could... As if my life wasn t miserable enough... Resident Talk Unhappy 6600320 Auf der Straße gibt s mehr zu futtern als in dies m Armenhaus! Nächstenliebe?! Dass ich nich lache! Auf der Straße könnt s uns auch nich schlechter geh n... Mann, hab ich n Loch im Bauch... Was is mit uns?! Habt Ihr uns vergess n?! Resident Talk Balanced 6600330 Hauptsache n Dach über m Kopf... Besser als auf der Straße isses in Eurem Armenhaus allemal! Für einen wie mich hat s Leben ohnehin nich viel zu biet n... Meinereiner is schon froh, wenn er die Nacht übersteht... Man muss das Leben nehm n, wie s kommt... Resident Talk Happy 6600340 Essen gut, alles gut! In Eurer Stadt bleib ich! kichert verschmitzt N Süppchen im Bauch wärmt Körper und Seele... Die Leute hier geb n gern und reichlich... Bei Euch ham wir s echt nich schlecht getroff n... Resident Talk Euphoric 6600350 It s like heaven here! I m... not... dead yet... am I? Like a pig in mud...! happy chuckle First time I ve slept in a bed in years! Wonderful! This Town has the most generous people I ve ever known... Someone gave me a coin today! All for me! Beggars Expel 6600360 Hey, you re not throwing us out of your Town, are you?! Is that true?! You really want to chuck us out?! What re you up to? Are you really chasing us out of your Town?! So now yer just drivin us out of here, are you?! So you want the poorest of the poor out of your Town now, do you?! Beggars Expel Accepted 6600370 You ll regret THIS, that s for sure! Pah! You wouldn t get away with it if we wasn t Beggars... One day... you re going to pay for this... Beggars Expel Cancelled 6600380 Phew! Thought you really meant it this time... That s a relief... you had me scared stiff there... Hospice Built 6600390 It s great, the way you look after us... Warms the cockles of my heart! Some of us have got a roof over our heads again now... Thanks! A House? Just for us Beggars? God bless you! Hospice Demolished 6600400 Demolishing Alms houses, eh?! You might as well just throw us out o the City! You ve a heart of stone, eh? Where re we supposed t go now? Text 6600500 [THIRDPARTY_SENDER_PLAYER] が[THIRDPARTY_CITY]に住むことを許可して欲しいと言ってきています。 [THIRDPARTY_SENDER_PLAYER] は驚きながら、本当に[THIRDPARTY_CITY]から出て行けと言うのかと言っています。 [THIRDPARTY_SENDER_PLAYER] は新しい救貧院の完成を喜んでいます。 [THIRDPARTY_SENDER_PLAYER] は救貧院の撤去に抗議しています。 Quests 6600600 Fatal theft Busy Beggars Futile search Beggar s code Special treatment One man s Meat… The Captain of [QUEST_CITY] Spiteful bed-chamber A sleazy offer Last chance A Beggar Crisis of Faith Foul misdeed Art of hunger Pretend love Warm housing Bauern 6601600 Feedback 6601600 Audio 6601600 Quest Started 6601650 Begging most humbly for your support! embarrassed throat-clearing Would you be so kind as to help me...? There is ... a matter... in which I... could do with your help... embarrassed laugh I wouldn t dream of asking you if it weren t important...
https://w.atwiki.jp/biyou55t/pages/104.html
店名 DETECT 電話番号 03-3403-1750 店舗住所 東京都渋谷区神宮前4-32-12ニューウェーブ原宿2F 店舗までのアクセス JR原宿駅5分/東京メトロ明治神宮前駅2分。JR原宿駅を出て、表参道を青山方面に歩くと明治通りとの交差点にGAPがあります。そこから明治通りを新宿方面に50mほど歩いた所の白い8階建てのビルの2階です。向かいのH Mが目印になります。東京メトロ明治神宮前駅5番出口を出て、信号をGAP側に渡り、明治通りを新宿方面に50mほど歩くとLHPと言う洋服屋があります。そのビルの2階です 営業時間のご案内 月曜日~金曜日 11 00~21 00(カット最終受付20 00)土曜日 11:00~20:00(カット最終受付19:00)日・祝日 11:00~19:00(カット最終受付18 00) 定休日 毎週水曜日 (祝祭日の場合は祝日時間にて営業) 取り扱いクレジットカード VISA・JCB・NICOS・UC・マスター・UFJ・ダイナースクラブ・アメックス カット価格 5770円~ スタイリスト数 9名 席数 25席 備考 15席以上の大型サロン/夜19時以降も受付OK/ドライカット/デジタルパーマ/パーティーメイク・セット/最寄り駅から徒歩3分以内にある/ドリンクサービスあり/カード支払いOK/男性スタッフが多い/お子さま同伴可 ▼原宿のその他の美容院 Life BLESS EXTENSION DIAMO MINX原宿店 hair&make halo apish treat coup-de-vent BACCHUS Tierra pas a pas 3 Little birds LeClub 原宿 MEGA TREND H eitf FORTE原宿店 晴屋 TAYA INTERNATIONAL 原宿 AXCELL GROOVE aJyu MASHU 原宿 COKETH EXTENSION Q9 -harajuku- gift Real green mille-fille ELLE et MOI column BLITZ by La Fiesta brisa 2030 VINGT-TRENTE Loop SHIN 表参道 Hair&Make Watanabe HAIR DRESSING Cura BLANCO CASUAL Siren.ex PERMS HAIR81 HYSTERIA 原宿店 Vivo Ratia sherbets BLANCHE ARTISM PATORA 原宿 anny hair figurista PlusLounge カラム・ナチャ Laheart PiCaSSo FACTORY MINX central marble m2 PEEK-A-BOO
https://w.atwiki.jp/yahirohumpty/pages/21.html
Fern 画像中の特徴点マッチングを行うための手法. SIFT,SURFとは異なり, 学習によって画像パッチをランダムに変形させたときの特徴を覚えておき, 照合時には画像変形を行わない.そのため高速にマッチングすることができる. OpenCV2における実装 sample/c/find_obj_ferns.cpp にサンプルがある. 下準備 GaussianBlurで平滑化 BuildPyramidで画像ピラミッド構築 学習 LDetectorは特徴点抽出? PatchGeneratorはパッチの変形にかかわるパラメータ? PlanarObjectDetector train() マッチング PlanarObjectDetector operator() 参考サイト 作者サイト http //cvlab.epfl.ch/alumni/oezuysal/ferns.html
https://w.atwiki.jp/amaeda/pages/13.html
- 番目のお客様♪ (※) プログラムを実行していかなる結果が生じても責任は負いません。悪しからず。 プログラムおよび実行結果 fftw+C言語標準ライブラリのみで動くプログラム とりあえず、試してみたい方へ。 プログラムの内容 ソースコード 実行結果 基本の使い方 1次元FFT fftw1D.cpp result1 基本の使い方 2次元FFT fftw2D.cpp result2 原点移動(2次元) DCexchange.cpp result3 パワースペクトルを得る powerspectol.cpp result4 位相を得る phase.cpp 画像出力する プランの再利用 メモリを節約したFFT OpenCVを利用したプログラム OpenCVというライブラリが必要だが、ライブラリ導入によって、コードも簡単、入出力も簡単になりオススメである。 プログラムの内容 ソースコード 実行結果 基本のひな形 fftwandopencv.cpp メモリを節約したFFT realdataDFT.cpp result101 ダウンロード program download ※ プログラム作成ポリシー -速度は優先しない(可読性重視) -エラーハンドリングは適度にまじめに (メモリ開放を通らないルーチンあり) 間違えやアドバイスなどありましたら、BBSにご一報ください。
https://w.atwiki.jp/yosilove/pages/19.html
OpenAL(Open Audio Library) ALUT OpenAL 解説 最終更新日 2009-09-24 link_pdfプラグインはご利用いただけなくなりました。 View - OpenGLを補完するオーディオAPIとして開発された、クロスプラットフォームのオープンソースなオーディオAPI。 マルチチャンネル3次元定位オーディオを効率よく表現するように設計されている。 簡単に言えば、三次元空間上に音源(ソース)と観測者(リスナー)を配置し、音の聞こえ方をシミュレーションできる。 OpenGLと組み合わせれば、「人間の前を救急車が通り過ぎるCG」を作成し「その際に人間が聞こえるサイレンの音」を再現することができるかもしれない。(まだためしてない) 大事な単語 ソース(Source) 音源、音の発生する場所 リスナー(Listener) 観測者、音を聞く場所 ピッチ(PITCH) 音の高低(音の振動数の相違) ゲイン(GAIN) 平均音量 参考文献 公式ページ OpenAL 非公式の日本語API OpenAL 1.1 Specification and Reference OpenALのチュートリアル(英語) Sound and Music Programming Macな人へ Macな人はOpenALはデフォルトで入ってるかもしれないので、公式ページからダウンロードする前に確認しましょう。 (インストーラで入れると厄介なことになるかも?) だがしかし、Sound and Music Programmingで使われているソースコードは半分も動きません。というのも、ALUTがないから、、、 なので、ALUTは公式サイトからダウンロードして自前でコンパイルしましょう! autogen.sh ./configure LIBS="-framework OpenAL" make sudo make install もちろん、Makefileも書き換えましょう。 以下、lesson1のMakefileの書き換え例 CC = g++ TARGET = lesson1 COMPILEFLAGS = -framework OpenAL LIBS="-lalut" $(TARGET) main.o $(CC) -o $(TARGET) main.o $(COMPILEFLAGS) $(LIBS) main.o main.cpp $(CC) -c main.cpp -Wno-deprecated clean rm -f $(TARGET) main.o 試した環境 MacOSX 10.5.8 ALUT 1.1.0 このページ中のOpenALに関する記事 音源の移動-CPP 複数の音源を鳴らす-CPP ドップラー効果(Doppler Effect)-CPP ドップラー効果(Doppler Effect) OpenALでビープ音を鳴らす-C OpenAL(Open Audio Library)
https://w.atwiki.jp/acti-on/pages/16.html
環境導入 openCV 前期webページ VisualStudioとOpenCVの導入 ■VisualStuddioでC++の普通のコンソールアプリを作って実行する方法 プロジェクト作成 「ファイル」→「新規作成」→「プロジェクト」→「Win32コンソールアプリケーション」→プロジェクト名とかを決めてOK 「アプリケーションの設定」→「アプリケーションの種類」を「コンソールアプリケーション」にし、「空のプロジェクト」にチェックしてOK ソースファイルをプロジェクトに追加 「プロジェクト」→「新しい項目の追加」→C++ファイル(.cpp) (ヘッダファイルなヘッダーファイル(.h)で) ソース書く ↓ 「ビルド」→「ソリューションのビルド」 ↓ 「デバッグ」→「デバッグ開始」で実行 ■OpenCVの導入 インストール (「Pathを通す」みたいな英文があったらチェック デフォルトで入ってたはず) VisualStudio側の設定 「ツール」→「オプション」→「プロジェクトおよびソリューション - VC++ディレクトリ」で以下のフォルダを追加 (これらは1.1用です) ディレクトリを表示するプロジェクト - インクルードフォルダ (OpenCVをインストールしたフォルダ)\cv\include (OpenCVをインストールしたフォルダ)\cxcore\include (OpenCVをインストールしたフォルダ)\ml\include (OpenCVをインストールしたフォルダ)\otherlibs\highgui (OpenCVをインストールしたフォルダ)\cvaux\include ディレクトリを表示するプロジェクト - ライブラリファイル (OpenCVをインストールしたフォルダ)\lib (これ以下の設定はプロジェクト毎にしてください) ■プロジェクト毎のリンク設定 「プロジェクト」→「(プロジェクト名)のプロパティ」 構成プロパティ - リンカ - 入力 「追加の依存ファイル」に以下のファイル名を追加(半角スペースが区切り) highgui.lib cxcore.lib ml.lib cv.lib cvaux.lib ■コマンドライン引数について (main関数の引数を使いたいときに設定) (ワークショップでのサンプルプロジェクトでも使われてます) 「プロジェクト」→「(プロジェクト名)のプロパティ」 構成プロパティ - デバッグ 「コマンド引数」に引数を追加(複数の場合は半角スペース区切り) (argv[0]は実行ファイル名なのでargv[1]から引数文字列が入ります) ■実際にサンプルプログラムを動かすまでの手順 プロジェクトを作る ↓ リンク設定をする ↓ ソースを書く ↓ ビルドして(コマンドライン引数を使う場合は設定して)デバッグ実行 tortoiseSVNの導入 環境導入 http //www.gside.org/Gentoo/subversion/subversion_client.htmlを参考に。 リポジトリのURL svn+ssh //ログイン名@kencho.tom.sfc.keio.ac.jp/share/project/0/svnrepos/acti_on_fall
https://w.atwiki.jp/dispair_alvitr/pages/18.html
またそのうち
https://w.atwiki.jp/chugoku/pages/65.html
OpenCVのコードを簡単にコンパイルし、日本語のフォルダ名で整理する方法!! 統合開発環境(IDE)ばっかりの今日この頃、コマンドラインは流行らない。しかし、VC++のオプションに設定より簡単だ。それにソースコード管理がエクスプローラというのがいい。 ソースファイルはわかりやすい名前でフォルダを作り、そこにソースコードを保存しておくと整理がしやすい。 また、実行時にgだけでコンパイルと実行ができると便利ではなかろうか? 開発環境にはエクスプローラ、好きなエディタ、コンソールの3つを開きっぱなしで開発するというスタイル やることは、cvcmd.batとg.batの2つのバッチファイルを作り、特定のフォルダにおくだけ。 コンソールを開く時の工夫としてショートカットメニューを使う。 (一番下に「インストール-フォルダを右クリックしてコンソールを開く.lzh」を解凍してクリックするとこれらの設定を自動でします。ただし、実行しても問題はないがVC++のフォルダ名が同じかチェックすること。) C \Documents and Settings\ユーザ名\SendToの中にcvcmd.batファイルを作る。 スタートボタンを右クリックしてエクスプローラを選択すると8つほど上のフォルダにSendToフォルダがある。 この中にcvcmd.batを新規に作り、以下の内容で保存する。 cvcmd.bat-------------------------------------------------------------------- call "C \Program Files\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat" @set INCLUDE=%INCLUDE%;C \Program Files\OpenCV\cv\include;C \Program Files\OpenCV\cvaux\include;C \Program Files\OpenCV\cxcore\include;C \Program Files\OpenCV\otherlibs\highgui;C \Program Files\Intel\plsuite\include @set LIB=%LIB%;c \Program Files\OpenCV\lib @set PATH=%PATH%;C \Program Files\OpenCV\bin echo %INCLUDE% echo %LIB% echo %PATH% @set kk=%1 %kk ~0,2% cd %1 cmd ---------------------------------------------------------------------------- 以上でVC++ 2008用の設定(callでbatファイルを呼び出す。フォルダ名はVisual Studio 9.0になっているので注意)とOpenCV用にINCLUDE、LIB、PATH環境変数を設定し、echoで確認用表示、%kk ~0,2%は、ドライブの変更、cd %1で選択したフォルダに移動してcmd.exe(コンソール)を呼び出す。 これでコンソールが開いているはず。 この状態でVC++とOpenCVの実行ファイルに対するパスの設定、VC++とOpenCVのLIB(ライブラリ)パスへの設定、VC++とOpenCVのINCLUDE(ヘッダファイル)へのパスの設定が完了している。 > gエンターキー でコンパイルと実行を自動化がしたい。 これを可能にするには、 ソースファイルを統一する。main.cppだ。 以下は、コンパイルと実行をするバッチファイルg.batの内容。g.batファイルはC \Program Files\OpenCV\binフォルダに置いておく。 g.bat------------------------------------------------------------------------- cl main.cpp %* cv.lib cxcore.lib cvaux.lib highgui.lib @echo off if errorlevel 1 goto end @echo コンパイルは正常だった。mainを実行する! rem 1以上だとmainは実行しない。errorlevel変数を確認したかった@echo %errorlevel% rem 正常終了はほとんどがreturn 0なので0以外=1以上ならmainを実行しない。 @echo on main.exe %* end ---------------------------------------------------------------------------- ソースファイルを常にmain.cppにしているところがポイント。フォルダ名で何をするコードなのか判断できる。 実行はgだけ。 もし、引数にファイル名を指定する必要がある場合は、ファイル名も書く。 %*なので引数は何個でも受け付ける。 右クリックでcvcmd.batを選んで開いたフォルダ名 g ファイル名 上記コマンドでコンパイルから実行までする。 フォルダの変更 フォルダを変更とは今開いているフォルダのコマンドプロンプト上でcdコマンドを使って別のフォルダに移動する方法だ。 開いたフォルダ名 cd ..\開きたいフォルダ名 cdコマンドに続く..\は一つ上のフォルダという意味。 しかし、 エクスプローラでターゲットのフォルダを選び右クリック-「送る」でcvcmd.batを選んで目的のフォルダを開く方が簡単だ。 不要になったコマンドプロンプトを閉じて、新たにエクスプローラでターゲットのフォルダを選び右クリック-「送る」でcvcmd.batを選ぼう。 名前 コメント 「今日の訪問数 - 」 「昨日の訪問数 - 」 「今までの訪問数 - 」